local state = require "/lib/stateswitcher"
local suit = require "/lib/suit-master"


local in_User = {text = ""}
local in_Domain = {text = ""}
local in_Port = {text = ""}


local button1 = "Press me UwU";

function love.load()
    print("loaded");
end

function love.update(dt)
    suit.Label("Username", {align="center"}, 100,65,100,30)
    suit.Input(in_User,100,100,100,30);
    suit.Label("Domain", {align="center"}, 100,165,100,30)
    suit.Input(in_Domain,100,200,100,30);
    suit.Label("Port", {align="center"}, 100,265,100,30)
    suit.Input(in_Port,100,300,100,30);


    if suit.Button(button1,400,300, 100,30).hit then

        button1 = "I <3 relat";
        state.switch("main");
        
    end
end

function love.textinput(t)
    suit.textinput(t);
end

function love.keypressed(key)
    suit.keypressed(key);
end

function love.draw()
    suit.draw();
end

function love.update(dt)
	lovelyMoon.event.update(dt)
end

function love.draw()
	lovelyMoon.event.draw()